Skip to main content

All Questions

0votes
1answer
750views

How to Increase the connection timeout threshold in Socket/TcpClient C#?

I have the connection from client to server using Socket/TcpClient. After I started it, the connection established between client and server, they can sent/recieved data between client and server. The ...
Headshot's user avatar
0votes
1answer
79views

TcpClient with IPEndPoint fails, but TcpClient with same IPEndPoint.Address does not?

I got a weird situation here, not sure if its a bug in .NET Core or my brain. using IPEndPoint to store the destination IP:port in my class, I use a TcpClient to connect. IPEndPoint _ipendpoint = ...
Hefaistos68's user avatar
3votes
1answer
4kviews

Azure Function runs into System.Net.Sockets.SocketException

I have AzureFunctions app with 2 HTTP trigered functions. Both are direved from same class but use different urls to fetch data. Every day Azure Data Factory pipeline triggers 1st HTTP function and ...
Jeka Developer's user avatar
1vote
0answers
320views

ConnectSsl method throws System.IO.IOException. An existing connection was forcibly closed by the remote host

I have tests that daily check a gmail folder for new emails. This has been working for over a year, and suddenly recently started failing when calling Client.ConnectSsl(mailServer, port). I'm using ...
Razkar's user avatar
0votes
1answer
534views

Xamarin.Forms app TcpClient Error on Connect with "No route to host" exception

I am having very strange issue. I have 2 application, one is just my proof of concept, the other one is my real app. Both are Xamarin.Forms applications supporting Android, iOS, and UWP. Both of ...
cd491415's user avatar
1vote
0answers
1kviews

Xamarin.Forms - TcpClient connection fails with System.Net.Sockets.SocketException (0x80004005): Network is unreachable

Background: I am running a cross-platform Xamarin.Forms app on a Nexus 7 (Android API level 22) that is configured to (in order): Connect to my WiFi network Connect to a Python script that runs on ...
Micah Vertal's user avatar
1vote
0answers
87views

C# TCPClient Write-Only connection

So I'm currently working on an C# application in VisualStudio, using an TCPClient and I get the following error when calling the Connect function: Unable to connect to the remote server System.Net....
Kjosu's user avatar
1vote
1answer
4kviews

Is the usage of TcpClients in unity3d for android possible?

I am trying to make an andorid app that commuicates with my server via Unity 5.4. The Devices need to be in the same network to do so. For that i am using System.Net.Sockets and a TcpClient to ...
Kusakari13's user avatar
4votes
3answers
10kviews

C# TcpClient Timeout

Im trying to connect to my router inside local network. I've used the TcpClient so far. Check my code: public static void RouterConnect() { TcpClient tcpClient = new ...
C4d's user avatar
  • 3,290
0votes
1answer
1kviews

TcpClient can't connect To TcpListener

i want to use a TcpListener - TcpClient connection inside Network. It is only working when i start the application both on one device, when i use 2 different devices in Network there is this Error: A ...
Kilian E.'s user avatar
0votes
3answers
2kviews

Error while making connection using TCP Client

I am trying to make connection with remote system in the network using C#. then the program is throwing the following exception No connection could be made because the target machine actively ...
Adesh singh's user avatar

close